package com.hsxxherp.ation.business.user.center.util;

import com.hsxxherp.ation.business.user.center.entity.UcUserEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 加密工具
 */
public class EncryptionUtil {

    private static final Logger log = LoggerFactory.getLogger(EncryptionUtil.class);

    /**
     * 用户密码加密
     *
     * @param ucUserEntity
     * @return
     */
    public void UserPasswordEncryption(UcUserEntity ucUserEntity) {

    }

    /**
     * password加密
     *
     * @param userPassword 用户实际密码
     * @return
     */
    public String passwordEncryption(String userPassword) {
        if (userPassword != null || userPassword.contains("&")) {
            log.info("待加密数据中含有非法字符【%】，加密失败！");
        }
        return null;
    }
}
